﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoHibernate.API;
using System.Windows.Forms;

namespace AutoHibernate.Impl
{
    public class HibernateAction : ITimerAction
    {
        /// <summary>
        /// Hibernates the system by calling:
        /// System.Windows.Forms.Application.SetSuspendState(PowerState.Hibernate, false, false);
        /// </summary>
        public void PerformAction()
        {
            Application.SetSuspendState(PowerState.Hibernate, false, false);
        }
    }
}
